// ==UserScript==
// @name         CSS Class
// @namespace    https://gitee.com/cn-src/browser-plugin-support
// @version      0.1
// @description  获取所有 css class，开发时使用
// @author       cn-src
// @match        //localhost:8080/*
// @grant        none
// ==/UserScript==
(function () {
    var allTags = document.body.getElementsByTagName('*');
    var classNames = {};
    for (var tg = 0; tg < allTags.length; tg++) {
        var tag = allTags[tg];
        if (tag.className) {
            var classes = tag.className.split(" ");
            for (var cn = 0; cn < classes.length; cn++) {
                var cName = classes[cn];
                if (!classNames[cName]) {
                    classNames[cName] = true;
                }
            }
        }
    }
    // var classList = [];
    for (var name in classNames) {
        // classList.push(name);
        console.log(name)
    }
})()